Skip to main content

estuary_client.MinerApi

All URIs are relative to //api.estuary.tech/

MethodHTTP requestDescription
miner_claim_miner_getGET /miner/claim/{miner}Get Claim Miner Message
miner_claim_postPOST /miner/claimClaim Miner
miner_set_info_miner_putPUT /miner/set-info/{miner}Set Miner Info
miner_suspend_miner_postPOST /miner/suspend/{miner}Suspend Miner
miner_unsuspend_miner_putPUT /miner/unsuspend/{miner}Unuspend Miner
public_miners_deals_miner_getGET /public/miners/deals/{miner}Get all miners deals
public_miners_stats_miner_getGET /public/miners/stats/{miner}Get miner stats

miner_claim_miner_get

ApiClaimMsgResponse miner_claim_miner_get(miner)

Get Claim Miner Message

This endpoint lets a user get the message in order to claim a miner

Example

from __future__ import print_function
import time
import estuary_client
from estuary_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: bearerAuth
configuration = estuary_client.Configuration()
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization'] = 'Bearer'

# create an instance of the API class
api_instance = estuary_client.MinerApi(estuary_client.ApiClient(configuration))
miner = 'miner_example' # str | Miner claim message

try:
# Get Claim Miner Message
api_response = api_instance.miner_claim_miner_get(miner)
pprint(api_response)
except ApiException as e:
print("Exception when calling MinerApi->miner_claim_miner_get: %s\n" % e)

Parameters

NameTypeDescriptionNotes
minerstrMiner claim message

Return type

ApiClaimMsgResponse

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

miner_claim_post

ApiClaimResponse miner_claim_post(body)

Claim Miner

This endpoint lets a user claim a miner

Example

from __future__ import print_function
import time
import estuary_client
from estuary_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: bearerAuth
configuration = estuary_client.Configuration()
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization'] = 'Bearer'

# create an instance of the API class
api_instance = estuary_client.MinerApi(estuary_client.ApiClient(configuration))
body = estuary_client.MinerClaimMinerBody() # MinerClaimMinerBody | Claim Miner Body

try:
# Claim Miner
api_response = api_instance.miner_claim_post(body)
pprint(api_response)
except ApiException as e:
print("Exception when calling MinerApi->miner_claim_post: %s\n" % e)

Parameters

NameTypeDescriptionNotes
bodyMinerClaimMinerBodyClaim Miner Body

Return type

ApiClaimResponse

Authorization

bearerAuth

HTTP request headers

  • Content-Type: /
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

miner_set_info_miner_put

ApiEmptyResp miner_set_info_miner_put(body, miner)

Set Miner Info

This endpoint lets a user set miner info.

Example

from __future__ import print_function
import time
import estuary_client
from estuary_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: bearerAuth
configuration = estuary_client.Configuration()
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization'] = 'Bearer'

# create an instance of the API class
api_instance = estuary_client.MinerApi(estuary_client.ApiClient(configuration))
body = estuary_client.MinerMinerSetInfoParams() # MinerMinerSetInfoParams | Miner set info params
miner = 'miner_example' # str | Miner to set info for

try:
# Set Miner Info
api_response = api_instance.miner_set_info_miner_put(body, miner)
pprint(api_response)
except ApiException as e:
print("Exception when calling MinerApi->miner_set_info_miner_put: %s\n" % e)

Parameters

NameTypeDescriptionNotes
bodyMinerMinerSetInfoParamsMiner set info params
minerstrMiner to set info for

Return type

ApiEmptyResp

Authorization

bearerAuth

HTTP request headers

  • Content-Type: /
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

miner_suspend_miner_post

ApiEmptyResp miner_suspend_miner_post(body, miner)

Suspend Miner

This endpoint lets a user suspend a miner.

Example

from __future__ import print_function
import time
import estuary_client
from estuary_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: bearerAuth
configuration = estuary_client.Configuration()
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization'] = 'Bearer'

# create an instance of the API class
api_instance = estuary_client.MinerApi(estuary_client.ApiClient(configuration))
body = estuary_client.MinerSuspendMinerBody() # MinerSuspendMinerBody | Suspend Miner Body
miner = 'miner_example' # str | Miner to suspend

try:
# Suspend Miner
api_response = api_instance.miner_suspend_miner_post(body, miner)
pprint(api_response)
except ApiException as e:
print("Exception when calling MinerApi->miner_suspend_miner_post: %s\n" % e)

Parameters

NameTypeDescriptionNotes
bodyMinerSuspendMinerBodySuspend Miner Body
minerstrMiner to suspend

Return type

ApiEmptyResp

Authorization

bearerAuth

HTTP request headers

  • Content-Type: /
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

miner_unsuspend_miner_put

ApiEmptyResp miner_unsuspend_miner_put(miner)

Unuspend Miner

This endpoint lets a user unsuspend a miner.

Example

from __future__ import print_function
import time
import estuary_client
from estuary_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: bearerAuth
configuration = estuary_client.Configuration()
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization'] = 'Bearer'

# create an instance of the API class
api_instance = estuary_client.MinerApi(estuary_client.ApiClient(configuration))
miner = 'miner_example' # str | Miner to unsuspend

try:
# Unuspend Miner
api_response = api_instance.miner_unsuspend_miner_put(miner)
pprint(api_response)
except ApiException as e:
print("Exception when calling MinerApi->miner_unsuspend_miner_put: %s\n" % e)

Parameters

NameTypeDescriptionNotes
minerstrMiner to unsuspend

Return type

ApiEmptyResp

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

public_miners_deals_miner_get

str public_miners_deals_miner_get(miner, ignore_failed=ignore_failed)

Get all miners deals

This endpoint returns all miners deals

Example

from __future__ import print_function
import time
import estuary_client
from estuary_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: bearerAuth
configuration = estuary_client.Configuration()
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization'] = 'Bearer'

# create an instance of the API class
api_instance = estuary_client.MinerApi(estuary_client.ApiClient(configuration))
miner = 'miner_example' # str | Filter by miner
ignore_failed = 'ignore_failed_example' # str | Ignore Failed (optional)

try:
# Get all miners deals
api_response = api_instance.public_miners_deals_miner_get(miner, ignore_failed=ignore_failed)
pprint(api_response)
except ApiException as e:
print("Exception when calling MinerApi->public_miners_deals_miner_get: %s\n" % e)

Parameters

NameTypeDescriptionNotes
minerstrFilter by miner
ignore_failedstrIgnore Failed[optional]

Return type

str

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

public_miners_stats_miner_get

str public_miners_stats_miner_get(miner)

Get miner stats

This endpoint returns miner stats

Example

from __future__ import print_function
import time
import estuary_client
from estuary_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: bearerAuth
configuration = estuary_client.Configuration()
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization'] = 'Bearer'

# create an instance of the API class
api_instance = estuary_client.MinerApi(estuary_client.ApiClient(configuration))
miner = 'miner_example' # str | Filter by miner

try:
# Get miner stats
api_response = api_instance.public_miners_stats_miner_get(miner)
pprint(api_response)
except ApiException as e:
print("Exception when calling MinerApi->public_miners_stats_miner_get: %s\n" % e)

Parameters

NameTypeDescriptionNotes
minerstrFilter by miner

Return type

str

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]